<html>
<head>
	<meta http-equiv="Content-type" content="text/html; charset=iso-8859-1">
	<g:if test="${!request.isMobile}">
     	<meta name="layout" content="mobile">
	</g:if>
	<g:else>
     	<meta name="layout" content="maian">
	</g:else>
</head>

  <body >
  	<h1>Erro Eolica</h1>
  	
  	<table  class="TableErro" align="center">	
		<tr>
			<td>
				<h3>Detalhes do Erro</h3>
			
			</td>
			<td> 
				<strong>Error ${request.'javax.servlet.error.status_code'}:</strong> ${request.'javax.servlet.error.message'.encodeAsHTML()}<br/>
				<strong>URI:</strong> ${request.'javax.servlet.error.request_uri'}<br/>
				<g:if test="${exception}">
			  		<strong>Exception Message:</strong> ${exception.message?.encodeAsHTML()} <br />
			  		<strong>Caused by:</strong> ${exception.cause?.message?.encodeAsHTML()} <br />
			  		<strong>Class:</strong> ${exception.className} <br />
			  		<strong>At Line:</strong> [${exception.lineNumber}] <br />
			  		<strong>Code Snippet:</strong><br />
			  		<div class="snippet">
			  			<g:each var="cs" in="${exception.codeSnippet}">
			  				${cs?.encodeAsHTML()}<br />
			  			</g:each>
			  		</div>
				</g:if>
			</td>
		</tr>
		<tr >
			<td>
				<h3>Stack Trace</h3>
			
			</td>
			<td> 
				<g:if test="${exception}">
				    <div class="stack">
				      <pre><g:each in="${exception.stackTraceLines}">${it.encodeAsHTML()}<br/></g:each></pre>
				    </div>
				</g:if>
			</td>
		</tr>
		<tr align="center"> 
			<td> </td>
			<td align="center"> <g:link onClick="javascript:history.back()" class="Voltar"   id="back" >Voltar</g:link></td>
					
		</tr>
	</table>
   
  </body>
</html>